#include "FunctionDefinition.h"
#include "../Declarations/DeclarationSpecifiers.h"
#include "../Declarations/Declarator.h"
#include "../Statements/CompoundStmt.h"
#include "DeclarationList.h"
FunctionDefinition::~FunctionDefinition()
{
	delete m_pDSpecifiers;
	delete m_pDeclarator;
	delete m_pStmts;
	if(m_pDList)
		delete m_pDList;
}

void FunctionDefinition::codeGen()
{
	COUT
	m_pDSpecifiers->codeGen();
	m_pDeclarator->codeGen();
	if(m_pDList)
		m_pDList->codeGen();
	m_pStmts->codeGen();
}